<?php 
require dirname ( __FILE__ ) . '/lib/init.php';
?>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>YuanPai CMS</title>
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/zDrag.js"></script>
	<script type="text/javascript" src="js/zDialog.js"></script>
	<link href="css/base.css" rel="stylesheet" type="text/css" media="all" />
    <style type="text/css">
		html{overflow-x: hidden;overflow-y: hidden;}
		body{margin: 0px;padding: 0px;}
		table { margin: 0px;padding: 0px; }
	</style>
	<script type="text/javascript">
	
		var show_dialog = function($id,$title,$url,$w,$h){
			var diag = new Dialog();
			diag.ID = $id;
			diag.Width = $w;
			diag.Height = $h;
			diag.Title = $title;
			diag.URL = $url;
			diag.show();
		};
		
		function close_dialog($id){
			Dialog.getInstance($id).close();
		}

		var show_alert = function($title){
			Dialog.alert($title);
		};

		var show_confirm = function($title,$ckfun){
			Dialog.confirm($title,$ckfun);
		};

		$(document).ready(function(){
			$("#sbar").click(function(){
				var imgsrc = $("#img1").attr("src");
				if (imgsrc == "images/main_55.gif") {
					$("#img1").attr("src","images/main_55_1.gif");
					$("#frmTitle").hide();
				} else {
					$("#img1").attr("src","images/main_55.gif");
					$("#frmTitle").show();
				}
			});
		});
	</script>
</head>
<body>
	<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td height="70" colspan="3">
				<iframe name="maintop" height="70" width="100%" border="0" frameborder="0" src="top.php"> </iframe>
			</td>
		</tr>
		<tr>
			<td width="171" id="frmTitle" align="center" valign="top">
				<iframe name="mainmenu" height="100%" width="171" src="menu_news.php" border="0" frameborder="0" scrolling="no"> </iframe>
			</td>
			<td>
				<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td width="8" style="width:8px;" valign="middle" bgcolor="#cccccc" id="sbar"><img src="images/main_55.gif" name="img1" width="8" height="23" id="img1" style="cursor: pointer;"/></td>
						<td width="100%" align="center" valign="top"><iframe name="maincenter" height="100%" width="100%" border="0" frameborder="0" src=""> </iframe></td>
					</tr>
				</table>
			</td>
			<td width="6" bgcolor="#cccccc" style="width: 6px;">&nbsp;</td>
		</tr>
		<tr>
			<td height="7" colspan="3">
				<iframe name="maindown" height="7" width="100%" border="0" frameborder="0" src="down.php"> </iframe>
			</td>
		</tr>
	</table>
</body>
</html>
